#!/bin/bash
sleep 1s
gnome-terminal -x bash -c "echo nvidia | sudo -S uhubctl  -a cycle -d 5 -p 1-4; exec bash"
sleep 10s
gnome-terminal -x bash -c "source $HOME/realsense_ws/devel/setup.bash;roslaunch realsense2_camera rs_camera.launch; exec bash"
sleep 3s
gnome-terminal -x bash -c "source $HOME/zhuoyi_ws/devel/setup.bash; roslaunch usb_cam usb_cam-rviz.launch; exec bash"
sleep 3s  
gnome-terminal -x bash -c "cd $HOME/zhuoyi_ws/bag;rosbag record /camera/color/image_raw /usb_cam/image_raw;exec bash" 
wait
exit 0
